/*
 * @Author: 刘美红 liumeihong@llootong.com
 * @Date: 2025-04-07 11:18:34
 * @LastEditors: 刘美红 liumeihong@llootong.com
 * @LastEditTime: 2025-04-29 18:38:17
 * @FilePath: \gzt-template\src\api\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import http from './httpInstance';

function getUserInfo() {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/vmp-server-ar/integrated-workbench/v1/arhome/camera/highAndLows',
  });
}

function login(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/vmp-server/integrated-workbench/v1/sysmanage/login',
    data: params,
  });
}

// 获取部门
function getTypeList(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/data-center/property/orgoptions',
    data: params,
  });
}

// 获取业务分类
function busioptions() {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/safearchives/property/busioptions',
  });
}

// 获取库类型
function paramkvlist(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/safearchives/param/paramkvlist',
    data: params,
  });
}

// 获取存储库
function repolist() {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/data-center/param/repolist',
  });
}

// 获取菜单

function getmenuListFun() {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/system/getrolemenus',
  });
}

export {
  getUserInfo,
  login,
  getTypeList,
  busioptions,
  paramkvlist,
  repolist,
  getmenuListFun,
};
